def decorator1(func):
    def wrapper(*args, **kwargs):
        print("----装饰器1------start")
        result = func(*args, **kwargs)
        print("----装饰器1------end")
        return result

    return wrapper


def decorator2(func):
    def wrapper(*args, **kwargs):
        print("----装饰器2-----start")
        result = func(*args, **kwargs)
        print("----装饰器2-----end")
        return result

    return wrapper

def decorator3(func):
    def wrapper(*args, **kwargs):
        print("----装饰器3-----start")
        result = func(*args, **kwargs)
        print("----装饰器3-----end")
        return result

    return wrapper

@decorator3
@decorator2
@decorator1
def func(a,b):
    print("----dunc----:",a+b)

if __name__=="__main__":
    res=func(2,7)